//
//  XiaoximenPerson.h
//  Xiaoximen_iOS
//
//  Created by Wang Zhongyu on 12-7-19.
//  Copyright (c) 2012年 Peking University. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "XiaoximenParty.h"

@interface XiaoximenPerson : NSObject
@property (weak, nonatomic) id party;
@property (nonatomic) NSUInteger ID;
@property (strong, nonatomic) NSString *phone;
@property (strong, nonatomic) NSString *name;
@property (nonatomic) BOOL isVoted;
@property (nonatomic) BOOL isComing;
@property (nonatomic) NSMutableDictionary *placeVotes;
@property (nonatomic) NSMutableDictionary *timeVotes;

- (id)initWithPhoneString:(NSString *)phoneString
				 userName:(NSString *)userName
				 personID:(NSUInteger)personID;
- (void)yesForPlaceID:(NSUInteger)placeID;
- (void)noForPlaceID:(NSUInteger)placeID;
- (void)yesForTimeID:(NSUInteger)timeID;
- (void)noForTimeID:(NSUInteger)timeID;

@end
